EA11y\Classes\Rest\Route S

Total Complexity 42
Dependencies 7
Dependents 0
Total lines 373
Lines of code 147
Logical lines of code 66
Comment lines 175
Methods 23
Properties 4

Methods 23

Method Rating Maintainability Complexity Lines of code
rest_api_init()
S
55 6 19
method_exists_in_current_class()
S
60 4 13
respond_error_json()
S
60 3 13
maybe_add_response_to_swagger()
S
61 2 12
verify_nonce_and_capability()
S
65 2 9
verify_nonce()
S
66 2 8
respond_wrong_method()
S
69 2 6
permission_callback()
S
69 2 7
verify_capability()
S
66 2 8
maybe_add_args_to_config()
S
66 2 8
get_permission_callback_method()
S
69 2 6
get_callback_method()
S
71 2 5
respond_success_json()
S
71 1 6
build_endpoint_method_config()
S
66 1 9
callback()
S
80 1 3
respond_with_code()
S
79 1 3
get_user_from_request()
S
79 1 3
get_arguments()
S
82 1 3
get_endpoint()
S
100 1 0
get_name()
S
100 1 0
get_self_url()
S
79 1 3
get_methods()
S
100 1 0
__construct()
S
79 1 3